﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CGSR.Core
{
    class RoutingInfoPacket : Packet
    {
        public readonly Dictionary<int, ClusterMembershipRecord> ClusterMembership; // key is node id
        public readonly Dictionary<int, RoutingRecord> RoutingTable; // key is destination CH
        
        public RoutingInfoPacket(int id, int size, int source, int destination, Dictionary<int, RoutingRecord> routingTable, Dictionary<int, ClusterMembershipRecord> clusterMembership)
            : base(id, size, source, destination,-1)
        {
            ClusterMembership = clusterMembership;
            RoutingTable = routingTable;
        }
    }
}
